﻿using Shumei.EFCore.SimpleService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace source.Controllers
{
    public class NewsController : Controller
    {
        NewsService newsService;
        public NewsController() { newsService = new NewsService(); }
        //
        //// GET: /News/
        //[HttpPost]
        //public ActionResult NewDetail()
        //{
        //    return View();
        //}
        public ActionResult NewDetail(int NewsId)
        {
            var model = newsService.GetNewDetail(NewsId);
            return View(model);
        }
        public ActionResult News()
        {
            return View();
        }
	}
}